import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [

    {
      path: '/',
      name: 'layout',
      component: () => import('../views/layout.vue'),
      // children: [
      //   {
      //     path: 'aside', // 注意这里没有斜杠开头，表示子路由
      //     name: 'aside',
      //     component: () => import('../views/Aside.vue')
      //   }
      // ]
    }
  ],
})

export default router
